<html><head><title>ErrorRegister</title></head>
<body bgcolor="#EFF1F0" link="#3A3966" vlink="#000000" alink="#000000">
<font face="Verdana, sans-serif" size="2"><p align="center"><b><font size="4">ErrorRegister()</font></b></p>
<p><b>Syntax</b></p><blockquote>
Result = <font color="#3A3966"><b>ErrorRegister</b></font>(Register) </blockquote>

</blockquote>
<b>Description</b><br><blockquote>

Returns the content of the specified CPU register at the time of the error. 
This command only returns a meaningful value if there was an error handled by <a href="onerrorcall.html">OnErrorCall()</a> or <a href="onerrorgoto.html">OnErrorGoto()</a>. 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>Register</i></td>
<td width="90%"> 
The available register constants depend on the CPU type for which the program is compiled. The following values are available: 
<br>
<br>

<b>x86:</b> 
<pre><font face="Courier New, Courier, mono"size="2">  <font color="#924B72">#PB_OnError_EAX</font>
  <font color="#924B72">#PB_OnError_EBX</font>
  <font color="#924B72">#PB_OnError_ECX</font>
  <font color="#924B72">#PB_OnError_EDX</font>
  <font color="#924B72">#PB_OnError_EBP</font>
  <font color="#924B72">#PB_OnError_ESI</font>
  <font color="#924B72">#PB_OnError_EDI</font>
  <font color="#924B72">#PB_OnError_ESP</font>
  <font color="#924B72">#PB_OnError_Flags</font>
</font></pre>

<b>x64:</b> 
<pre><font face="Courier New, Courier, mono"size="2">  <font color="#924B72">#PB_OnError_RAX</font>
  <font color="#924B72">#PB_OnError_RCX</font>
  <font color="#924B72">#PB_OnError_RDX</font>
  <font color="#924B72">#PB_OnError_RBX</font>
  <font color="#924B72">#PB_OnError_RSP</font>
  <font color="#924B72">#PB_OnError_RBP</font>
  <font color="#924B72">#PB_OnError_RSI</font>
  <font color="#924B72">#PB_OnError_RDI</font>
  <font color="#924B72">#PB_OnError_R8</font>
  <font color="#924B72">#PB_OnError_R9</font>
  ...
  <font color="#924B72">#PB_OnError_R15</font>
  <font color="#924B72">#PB_OnError_Flags</font>
</font></pre>

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>

The content of the specified CPU register at the time of the error. 

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=errormessage.html>ErrorMessage()</a> - <a href="index.html">OnError Index</a> - <a href="errortargetaddress.html">ErrorTargetAddress()</a> -><br><br>

</body></html>